package com.user.read.dao;

import com.user.read.dto.UserDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName UserMapper
 * @Desecription TODO 1.2新增
 * @Author zzw
 * @Date 2021/3/22 9:09
 * @Version 1.2
 **/
@Mapper
@Repository
public interface UserMapper {
    //获取所有人员信息
    List<UserDTO> getAll();

    //分页获取所有人员信息
    List<UserDTO> getAllByPage(Map hash);

    UserDTO getOne(int id);
}
